import { Hono } from "hono";
import { json } from "./providers";

const app = new Hono();

app.get("/", (c) => {
  return c.text("你好，欢迎使用图片-视频处理小助手!");
});

app.post("/", async (c) => {
  const body = await c.req.json();
  const data = await json(body.input);
  return c.json(data);
});

export default app;
